package com.example.sudokusolver;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.widget.Button;

public class MainScreen extends Activity
{
	Button btnStart, btnTutorial, btnPhoto, btnExit;
	
	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main_screen);
		
		btnStart = (Button) findViewById(R.id.start_button);
		btnStart.setOnClickListener(new View.OnClickListener()
		{
			@Override
			public void onClick(View v)
			{
				Intent intent = new Intent(v.getContext(), DifficultyScreen.class);
				startActivity(intent);
			}
		});
		btnTutorial = (Button) findViewById(R.id.tutorial_button);
		btnTutorial.setOnClickListener(new View.OnClickListener()
		{
			@Override
			public void onClick(View v)
			{
				Intent intent = new Intent(v.getContext(), TutorialScreen1.class);
				startActivity(intent);
			}
		});
		btnPhoto = (Button) findViewById(R.id.photo_button);
		btnPhoto.setOnClickListener(new View.OnClickListener()
		{
			@Override
			public void onClick(View v)
			{
				
			}
		});
		btnExit = (Button) findViewById(R.id.exit_button);
		btnExit.setOnClickListener(new View.OnClickListener()
		{
			@Override
			public void onClick(View v)
			{
				finish();
			}
		});
	}
	
	@Override
	public boolean onCreateOptionsMenu(Menu menu)
	{
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main_screen, menu);
		return true;
	}
	
}